<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			#content{
			
			line-height: 45px;
			font-weight:blod;
			font-size:20px;
			}
		</style>
	</head>
	<body>
	</body>
	
	<div id="content">
		<div id="todayDate"></div>
	<div id="todayTime"></div>
	<div id="wenhou"></div>
	</div>
	
	
	<script type="text/javascript">
		
		
		function showTime(){
			var todays=new Date();
			var year=todays.getFullYear();
			var month=todays.getMonth();
			var date=todays.getDate();
			var week=todays.getDay();
			var hh=todays.getHours();
			var mm=todays.getMinutes();
		
			
			
	
		
		
		if(hh>=0&hh<=12){
			
		document.getElementById("todayDate").innerHTML="今日日期："+year+"年"+(month+1)+"月"+date+"日";
		document.getElementById("todayTime").innerHTML="现在时间："+hh+"点"+mm+"分";
		document.getElementById("wenhou").innerHTML="上午好！欢迎来到贵美";
		}else if(hh>12&hh<=18){
			
				document.getElementById("todayDate").innerHTML="今日日期："+year+"年"+(month+1)+"月"+date+"日";
		document.getElementById("todayTime").innerHTML="现在时间："+hh+"点"+mm+"分";
		document.getElementById("wenhou").innerHTML="下午好！欢迎来到贵美";
		}else if(hh>18&hh<24){
					document.getElementById("todayDate").innerHTML="今日日期："+year+"年"+(month+1)+"月"+date+"日";
		document.getElementById("todayTime").innerHTML="现在时间："+hh+"点"+mm+"分";
		document.getElementById("wenhou").innerHTML="晚上好！欢迎来到贵美";
			
		}
			
			
		}
		
		showTime();
	</script>
	
	
</html>
